package com.chendechao.model_home.ui

import com.chendechao.lib_network.di.model.BaseResponse
import com.chendechao.model_home.model.CommentData
import com.chendechao.model_home.model.RecommendMutilVideo
import com.chendechao.model_home.model.SendCommentData
import com.chendechao.model_home.model.SimpleType
import okhttp3.RequestBody
import retrofit2.http.Body
import retrofit2.http.GET
import retrofit2.http.POST
import retrofit2.http.Query

interface HomApiService {
    @GET("/videotype/getSimpleType")
    suspend fun getTabLayoutData():BaseResponse<List<SimpleType>>
    @GET("/videomulti/getRecommendMutilVideo")
    suspend fun getRecommendMutilVideo(@Query("page") page:Int,@Query("pagesize")pageSize: Int):BaseResponse<List<RecommendMutilVideo>>
    @GET("/comment/getCommentByUserId")
    suspend fun getCommentListData(@Query("datatype") datatype:Int,@Query("itemid")itemid: String):BaseResponse<List<CommentData>>
    @POST("/comment/publishComment")
    suspend fun postSendCommentData(@Body body: RequestBody):SendCommentData

}